<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibQQt: QQtUdpServer Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibQQt
   &#160;<span id="projectnumber">v3.1</span>
   </div>
   <div id="projectbrief">开源、跨平台Qt应用程序框架中间件</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-slots">Public Slots</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-slots">Protected Slots</a> &#124;
<a href="class_q_qt_udp_server-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QQtUdpServer Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for QQtUdpServer:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_q_qt_udp_server.png" usemap="#QQtUdpServer_map" alt=""/>
  <map id="QQtUdpServer_map" name="QQtUdpServer_map">
<area href="class_q_qt_udp_client.html" alt="QQtUdpClient" shape="rect" coords="0,56,96,80"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-slots"></a>
Public Slots</h2></td></tr>
<tr class="memitem:a211ac52377f5a841ea470f129b31c287"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_qt_udp_server.html#a211ac52377f5a841ea470f129b31c287">clientSocketDisConnected</a> ()</td></tr>
<tr class="separator:a211ac52377f5a841ea470f129b31c287"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_slots_class_q_qt_udp_client"><td colspan="2" onclick="javascript:toggleInherit('pub_slots_class_q_qt_udp_client')"><img src="closed.png" alt="-"/>&#160;Public Slots inherited from <a class="el" href="class_q_qt_udp_client.html">QQtUdpClient</a></td></tr>
<tr class="memitem:a669b2d4675fdbfe0254f6a80383ebba8 inherit pub_slots_class_q_qt_udp_client"><td class="memItemLeft" align="right" valign="top"><a id="a669b2d4675fdbfe0254f6a80383ebba8"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>slotWriteData</b> (const QByteArray &amp;)</td></tr>
<tr class="separator:a669b2d4675fdbfe0254f6a80383ebba8 inherit pub_slots_class_q_qt_udp_client"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a1e105204fe08762d63e36cd4fb41152f"><td class="memItemLeft" align="right" valign="top"><a id="a1e105204fe08762d63e36cd4fb41152f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>QQtUdpServer</b> (QObject *parent=nullptr)</td></tr>
<tr class="separator:a1e105204fe08762d63e36cd4fb41152f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa8d7be82c3891536fb8c468333db819"><td class="memItemLeft" align="right" valign="top"><a id="aaa8d7be82c3891536fb8c468333db819"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>installProtocolManager</b> (<a class="el" href="class_q_qt_protocol_manager.html">QQtProtocolManager</a> *stackGroup)</td></tr>
<tr class="separator:aaa8d7be82c3891536fb8c468333db819"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51658b2b05b3f4fda18a01b55f96dd58"><td class="memItemLeft" align="right" valign="top"><a id="a51658b2b05b3f4fda18a01b55f96dd58"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>uninstallProtocolManager</b> (<a class="el" href="class_q_qt_protocol_manager.html">QQtProtocolManager</a> *stackGroup)</td></tr>
<tr class="separator:a51658b2b05b3f4fda18a01b55f96dd58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8601ab499f15cb6f327a6ee8944eedb5"><td class="memItemLeft" align="right" valign="top"><a id="a8601ab499f15cb6f327a6ee8944eedb5"></a>
<a class="el" href="class_q_qt_protocol_manager.html">QQtProtocolManager</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>installedProtocolManager</b> ()</td></tr>
<tr class="separator:a8601ab499f15cb6f327a6ee8944eedb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ad2108abbe963b75c91cdc175f8ee4f"><td class="memItemLeft" align="right" valign="top"><a id="a4ad2108abbe963b75c91cdc175f8ee4f"></a>
<a class="el" href="class_q_qt_udp_client.html">QQtUdpClient</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>findClientByProtocolInstance</b> (<a class="el" href="class_q_qt_protocol.html">QQtProtocol</a> *protocol)</td></tr>
<tr class="separator:a4ad2108abbe963b75c91cdc175f8ee4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b8c8309b94aca216d8f8c9c70f16d3d"><td class="memItemLeft" align="right" valign="top"><a id="a7b8c8309b94aca216d8f8c9c70f16d3d"></a>
<a class="el" href="class_q_qt_udp_client.html">QQtUdpClient</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>findClientByIPAddress</b> (QString ip, quint16 port)</td></tr>
<tr class="separator:a7b8c8309b94aca216d8f8c9c70f16d3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad97b16dc0db309efe379d544c3fb9e8c"><td class="memItemLeft" align="right" valign="top"><a id="ad97b16dc0db309efe379d544c3fb9e8c"></a>
QList&lt; <a class="el" href="class_q_qt_udp_client.html">QQtUdpClient</a> * &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>clientList</b> ()</td></tr>
<tr class="separator:ad97b16dc0db309efe379d544c3fb9e8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_q_qt_udp_client"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_q_qt_udp_client')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_q_qt_udp_client.html">QQtUdpClient</a></td></tr>
<tr class="memitem:aff5e16f419b2e67808c9ca3bbd8bcfdd inherit pub_methods_class_q_qt_udp_client"><td class="memItemLeft" align="right" valign="top"><a id="aff5e16f419b2e67808c9ca3bbd8bcfdd"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>QQtUdpClient</b> (QObject *parent=nullptr)</td></tr>
<tr class="separator:aff5e16f419b2e67808c9ca3bbd8bcfdd inherit pub_methods_class_q_qt_udp_client"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f1de4bf70fe6b3487272a75436e280f inherit pub_methods_class_q_qt_udp_client"><td class="memItemLeft" align="right" valign="top"><a id="a0f1de4bf70fe6b3487272a75436e280f"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setServer</b> (QString ip, quint16 port)</td></tr>
<tr class="separator:a0f1de4bf70fe6b3487272a75436e280f inherit pub_methods_class_q_qt_udp_client"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4aa6039dab0f21cc788b0003e049185 inherit pub_methods_class_q_qt_udp_client"><td class="memItemLeft" align="right" valign="top"><a id="af4aa6039dab0f21cc788b0003e049185"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>getServer</b> (QString &amp;ip, quint16 &amp;port)</td></tr>
<tr class="separator:af4aa6039dab0f21cc788b0003e049185 inherit pub_methods_class_q_qt_udp_client"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab21d0827990f8f29ed23f588b825b9e inherit pub_methods_class_q_qt_udp_client"><td class="memItemLeft" align="right" valign="top"><a id="aab21d0827990f8f29ed23f588b825b9e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>installProtocol</b> (<a class="el" href="class_q_qt_protocol.html">QQtProtocol</a> *stack)</td></tr>
<tr class="separator:aab21d0827990f8f29ed23f588b825b9e inherit pub_methods_class_q_qt_udp_client"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a014d30f02a0c6c086351fc237f6c299b inherit pub_methods_class_q_qt_udp_client"><td class="memItemLeft" align="right" valign="top"><a id="a014d30f02a0c6c086351fc237f6c299b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>uninstallProtocol</b> (<a class="el" href="class_q_qt_protocol.html">QQtProtocol</a> *stack)</td></tr>
<tr class="separator:a014d30f02a0c6c086351fc237f6c299b inherit pub_methods_class_q_qt_udp_client"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a127b5f524ade2841a653add755ac77e9 inherit pub_methods_class_q_qt_udp_client"><td class="memItemLeft" align="right" valign="top"><a id="a127b5f524ade2841a653add755ac77e9"></a>
<a class="el" href="class_q_qt_protocol.html">QQtProtocol</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>installedProtocol</b> ()</td></tr>
<tr class="separator:a127b5f524ade2841a653add755ac77e9 inherit pub_methods_class_q_qt_udp_client"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a231ee307f41a4a32f8709fdb9ec9bb55 inherit pub_methods_class_q_qt_udp_client"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_qt_udp_client.html#a231ee307f41a4a32f8709fdb9ec9bb55">translator</a> (const QByteArray &amp;bytes)</td></tr>
<tr class="memdesc:a231ee307f41a4a32f8709fdb9ec9bb55 inherit pub_methods_class_q_qt_udp_client"><td class="mdescLeft">&#160;</td><td class="mdescRight">translator 用于拆分和分发数据报  <a href="class_q_qt_udp_client.html#a231ee307f41a4a32f8709fdb9ec9bb55">More...</a><br /></td></tr>
<tr class="separator:a231ee307f41a4a32f8709fdb9ec9bb55 inherit pub_methods_class_q_qt_udp_client"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-slots"></a>
Protected Slots</h2></td></tr>
<tr class="memitem:a1852aa81a63fd5c06e583bde55eaed2e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_qt_udp_server.html#a1852aa81a63fd5c06e583bde55eaed2e">readyReadData</a> ()</td></tr>
<tr class="separator:a1852aa81a63fd5c06e583bde55eaed2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_slots_class_q_qt_udp_client"><td colspan="2" onclick="javascript:toggleInherit('pro_slots_class_q_qt_udp_client')"><img src="closed.png" alt="-"/>&#160;Protected Slots inherited from <a class="el" href="class_q_qt_udp_client.html">QQtUdpClient</a></td></tr>
<tr class="memitem:aa6b61458170cf9626524ca44fba2b01b inherit pro_slots_class_q_qt_udp_client"><td class="memItemLeft" align="right" valign="top"><a id="aa6b61458170cf9626524ca44fba2b01b"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>readyReadData</b> ()</td></tr>
<tr class="separator:aa6b61458170cf9626524ca44fba2b01b inherit pro_slots_class_q_qt_udp_client"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header signals_class_q_qt_udp_client"><td colspan="2" onclick="javascript:toggleInherit('signals_class_q_qt_udp_client')"><img src="closed.png" alt="-"/>&#160;Signals inherited from <a class="el" href="class_q_qt_udp_client.html">QQtUdpClient</a></td></tr>
<tr class="memitem:aa527d85be364fc6f7924378f2342a36e inherit signals_class_q_qt_udp_client"><td class="memItemLeft" align="right" valign="top"><a id="aa527d85be364fc6f7924378f2342a36e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>signalConnecting</b> ()</td></tr>
<tr class="separator:aa527d85be364fc6f7924378f2342a36e inherit signals_class_q_qt_udp_client"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a4d97cf2aabf4d9e9d9eb2e6023cf5c inherit signals_class_q_qt_udp_client"><td class="memItemLeft" align="right" valign="top"><a id="a4a4d97cf2aabf4d9e9d9eb2e6023cf5c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>signalConnectSucc</b> ()</td></tr>
<tr class="separator:a4a4d97cf2aabf4d9e9d9eb2e6023cf5c inherit signals_class_q_qt_udp_client"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5bb43242e6e798fdb32717f4393470a inherit signals_class_q_qt_udp_client"><td class="memItemLeft" align="right" valign="top"><a id="ae5bb43242e6e798fdb32717f4393470a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>signalConnectFail</b> ()</td></tr>
<tr class="separator:ae5bb43242e6e798fdb32717f4393470a inherit signals_class_q_qt_udp_client"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15ba1e172184bb67aa880dbcc8e231c9 inherit signals_class_q_qt_udp_client"><td class="memItemLeft" align="right" valign="top"><a id="a15ba1e172184bb67aa880dbcc8e231c9"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>signalDisConnectSucc</b> ()</td></tr>
<tr class="separator:a15ba1e172184bb67aa880dbcc8e231c9 inherit signals_class_q_qt_udp_client"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98d5f9f61a34a481dd02ffa841d8e736 inherit signals_class_q_qt_udp_client"><td class="memItemLeft" align="right" valign="top"><a id="a98d5f9f61a34a481dd02ffa841d8e736"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>signalDisConnectFail</b> ()</td></tr>
<tr class="separator:a98d5f9f61a34a481dd02ffa841d8e736 inherit signals_class_q_qt_udp_client"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c3eed1af68e01129cb7cd8f94d4fd94 inherit signals_class_q_qt_udp_client"><td class="memItemLeft" align="right" valign="top"><a id="a1c3eed1af68e01129cb7cd8f94d4fd94"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>signalUpdateProgress</b> (qint64 value)</td></tr>
<tr class="separator:a1c3eed1af68e01129cb7cd8f94d4fd94 inherit signals_class_q_qt_udp_client"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_class_q_qt_udp_client"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_class_q_qt_udp_client')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="class_q_qt_udp_client.html">QQtUdpClient</a></td></tr>
<tr class="memitem:a75439743606f5f73195e975fe9206c0e inherit pro_methods_class_q_qt_udp_client"><td class="memItemLeft" align="right" valign="top"><a id="a75439743606f5f73195e975fe9206c0e"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>recvDatagram</b> (QByteArray &amp;bytes, QHostAddress &amp;address, quint16 &amp;port)</td></tr>
<tr class="separator:a75439743606f5f73195e975fe9206c0e inherit pro_methods_class_q_qt_udp_client"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a211ac52377f5a841ea470f129b31c287"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a211ac52377f5a841ea470f129b31c287">&#9670;&nbsp;</a></span>clientSocketDisConnected</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QQtUdpServer::clientSocketDisConnected </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>这个函数，在UDP Server里面没有用。Client句柄安装的Protocol会从Client句柄发出，不会从这里发出。 我打算从这里往组播服务器发消息。 用户可以在协议里面定义组播服务器的位置，并且定义获取组播地址的命令。 注意哦，组播服务器一定要设置为仅仅识别为有数的几个服务器的接收，包括本服务器，否则会风暴的。 </p>

</div>
</div>
<a id="a1852aa81a63fd5c06e583bde55eaed2e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1852aa81a63fd5c06e583bde55eaed2e">&#9670;&nbsp;</a></span>readyReadData</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QQtUdpServer::readyReadData </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>以下和用户无关 </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>R:/Develop/a0-develop/LibQQt/src/network/<a class="el" href="qqtudpserver_8h_source.html">qqtudpserver.h</a></li>
<li>R:/Develop/a0-develop/LibQQt/src/network/qqtudpserver.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
